<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests Copy/Paste of a input field.
selection_test(
    '<div contenteditable id="target"><input>|</div>',
    selection => {
        selection.document.execCommand('SelectAll');
        selection.document.execCommand('Copy');
        selection.collapse(selection.document.getElementById('target'), 1);
        selection.document.execCommand('Paste');
    },
    '<div contenteditable id="target"><input><input>|</div>');
</script>
